<?php

namespace App\Enums;

class RewardEnum {
    /**********奖品大类*********/
    // 道具
    const REWARD_BIG_TYPE_ITEM = 2;

    // 礼包
    const REWARD_BIG_TYPE_BAG = 1;

    /**********奖品类型*********/
    // 积分
    const REWARD_TYPE_SCORE = 1;

    // 头像框
    const REWARD_TYPE_HEAD_FRAME = 2;

    // 坐骑
    const REWARD_TYPE_RIDE = 3;

    // 入场特效
    const REWARD_TYPE_SPECIAL = 4;

    // 金币
    const REWARD_TYPE_GOLD = 5;

    // 礼物
    const REWARD_TYPE_GIFT = 6;

    // 魔法帽
    const REWARD_TYPE_MAGIC_HAT = 7;

    // 碎片
    const REWARD_TYPE_FRAGMENT = 8;

    /**********积分来源类型*********/
    // 默认
    const REWARD_SOURCE_TYPE_DEFAULT = 1;

    // 积分商城
    const REWARD_SOURCE_TYPE_SCORE_MALL = 2;

    // 战令系统
    const REWARD_SOURCE_TYPE_WAR_ORDER = 3;

    // 任务系统
    const REWARD_SOURCE_TYPE_TASK = 4;

    // 签到
    const REWARD_SOURCE_TYPE_SIGN = 5;

    // 领取宝箱
    const REWARD_SOURCE_TYPE_BOX = 6;

    /**********任务奖励类型**********/
    // 积分
    const TASK_REWARD_TYPE_SCORE = 1;

    // 礼物
    const TASK_REWARD_TYPE_GIFT = 2;

    // 装扮
    const TASK_REWARD_TYPE_DRAW = 3;

    // 任务奖品类型映射
    const TASK_REWARD_MAP = [
        self::REWARD_TYPE_SCORE => 1,
        self::REWARD_TYPE_HEAD_FRAME => 3,
        self::REWARD_TYPE_RIDE => 3,
        self::REWARD_TYPE_SPECIAL => 3,
        self::REWARD_TYPE_GOLD => 1,
        self::REWARD_TYPE_GIFT => 2,
        self::REWARD_TYPE_MAGIC_HAT => 2,
        self::REWARD_TYPE_FRAGMENT => 2,
    ];

}
